.container {
  padding: 20px;
}

.header {
  margin-bottom: 20px;
}

.breadcrumb {
  margin-bottom: 16px;
}

.operationTips {
  background-color: #f0f9eb;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.operationTips ol {
  margin: 0;
  padding-left: 20px;
}

.searchBar {
  display: flex;
  margin-bottom: 20px;
  gap: 16px;
  align-items: center;
}

.searchInput {
  width: 200px;
}

.datePicker {
  width: 200px;
}

.title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
}

.currentLocation {
  padding: 12px 20px;
  background-color: #e6eef7;
  color: #333;
}

.contentSection {
  background: #fff;
  padding: 20px;
  margin-top: 20px;
}

.categoryHeader {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 12px;
}

.categoryTitle {
  font-size: 16px;
  font-weight: bold;
  color: #52c41a;
  margin-right: 20px;
}

.productInfo {
  color: #666;
}

.categorySelection {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.categoryColumn {
  width: 300px;
}

.categoryLabel {
  color: #333;
  font-weight: bold;
  margin-bottom: 16px;
}

.selectionBox {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  min-height: 300px;
}

.categoryItem {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.categoryItem:hover {
  background-color: #f6f6f6;
}

.categoryItem.selected {
  background-color: #e6f7e6;
  color: #52c41a;
}

.arrow {
  color: #52c41a;
  font-size: 24px;
  font-weight: bold;
  margin-top: 120px;
}

.footer {
  text-align: center;
  margin-top: 40px;
}

.nextButton {
  height: 40px;
  padding: 0 40px;
  font-size: 14px;
  background-color: #52c41a;
  border-color: #52c41a;
}

.nextButton:hover {
  background-color: #49ad15;
  border-color: #49ad15;
}

.locationWrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e6eef7;
}

.backButton {
  margin-right: 20px;
}

.formItem {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
}

.label {
  width: 120px;
  text-align: right;
  margin-right: 16px;
  color: #333;
}

.formItem :global(.ant-switch) {
  background-color: #808080;
}

.formItem :global(.ant-switch-checked) {
  background-color: #1890ff;
}

.required {
  color: #ff4d4f;
  margin-right: 4px;
}

.categoryText {
  line-height: 32px;
  color: #333;
}

.input {
  width: 400px;
}

.priceWrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.priceInput {
  width: 200px;
}

.unit {
  color: #666;
}

.uploadSection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uploader {
  :global {
    .ant-upload-list-picture-card-container {
      width: 104px;
      height: 104px;
    }
    .ant-upload.ant-upload-select-picture-card {
      width: 104px;
      height: 104px;
    }
  }
}

.uploadTip {
  color: #666;
  font-size: 12px;
}

.editorWrapper {
  flex: 1;
  max-width: 800px;
  border: 1px solid #ccc;
  border-radius: 2px;
  z-index: 100;
}

/* 标签页样式 */
.tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 24px;
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  color: #666;
}

.tab.active {
  color: #1890ff;
  font-weight: 500;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1890ff;
}

/* 表单内容样式 */
.formContent {
  padding: 24px;
}

.switchItem {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.formItem {
  display: flex;
  margin-bottom: 24px;
}

.formItem :global(.ant-select),
.formItem :global(.ant-input) {
  width: 400px;
}

/* 表单操作按钮样式 */
.formActions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* 编辑器容器样式 */
.editorWrapper {
  flex: 1;
  max-width: 800px;
}

/* 标签属性样式 */
.tagGroup {
  display: flex;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
}

.tag.active {
  color: #1890ff;
  border-color: #1890ff;
  background: #e6f7ff;
}

/* 必填项标记 */
.required::before {
  content: '*';
  color: #ff4d4f;
  margin-right: 4px;
}

/* 输入框提示文本 */
.inputTip {
  color: #999;
  font-size: 12px;
  margin-top: 4px;
}

/* 图片上传区域样式 */
.uploadArea {
  width: 400px;
}

.uploadArea :global(.ant-upload-list-picture-card) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uploadArea :global(.ant-upload-list-picture-card-container) {
  width: 104px;
  height: 104px;
  margin: 0;
}

.uploadArea :global(.ant-upload.ant-upload-select-picture-card) {
  width: 104px;
  height: 104px;
  margin: 0;
}

.label[required]:before {
  content: '*';
  color: #ff4d4f;
  margin-right: 4px;
}

.specPriceWrapper {
  display: flex;
  align-items: center;
}

.merchantSelector {
  display: flex;
  align-items: center;
}

.selectedMerchantTag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 4px;
  color: #1890ff;
  cursor: default;

  :global(.anticon) {
    font-size: 12px;
    cursor: pointer;
    
    &:hover {
      color: #40a9ff;
    }
  }
}

.merchantModal {
  :global(.ant-modal-content) {
    padding: 0;
  }
  
  :global(.ant-modal-header) {
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
  }

  :global(.ant-modal-body) {
    padding: 24px;
  }
}

.merchantModalContent {
  .searchInput {
    width: 240px;
    margin-bottom: 16px;
  }

  .merchantTable {
    :global(.ant-table-thead > tr > th) {
      background: #fafafa;
      font-weight: 500;
      border-bottom: 1px solid #f0f0f0;
    }

    :global(.ant-table-tbody > tr > td) {
      border-bottom: 1px solid #f0f0f0;
    }

    :global(.ant-table-tbody > tr:hover) {
      cursor: pointer;
      td {
        background: #f5f5f5;
      }
    }
  }
}

.statusTag {
  min-width: 60px;
  text-align: center;
  
  &:global(.ant-tag-success) {
    color: #52c41a;
    background: #f6ffed;
    border-color: #b7eb8f;
  }
}

.pagination {
  margin-top: 16px;
  text-align: right;
  
  :global(.ant-pagination-total-text) {
    float: left;
  }
}

.categorySelector {
  position: relative;
}

.selectedCategories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.categoryTag {
  background: #e6f7ff;
  border-color: #91d5ff;
  color: #1890ff;
  padding: 4px 8px;
  margin-right: 8px;
}

.categoryPopoverWrapper {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.categoryPopover {
  padding: 12px;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.categoryGroup {
  margin-bottom: 8px;
}

.mainCategory {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  
  .expandIcon {
    cursor: pointer;
    color: #999;
    
    &:hover {
      color: #666;
    }
  }
}

.subCategories {
  padding: 8px 8px 8px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}